package einlesen;

public class Adjuster {

	public static final String KOMMENTAR_ZEICHEN = "#";

	public String fileNamesOnly(String fileContents) {
		String names = "";
		String lines[];

		lines = fileContents.split("\n");
		for (int i = 0; i < lines.length; i++) {
			if (!lines[i].startsWith(KOMMENTAR_ZEICHEN)) {
				names += extractNames(lines[i]) + "\n";
			}
		}
		return names;
	}

	public String extractNames(String s) {
		String name = s.substring(s.lastIndexOf(java.io.File.separator) + 1);
		return name;
	}
}